package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "sound")
public class Sound implements Serializable {
    private ObjectId id;//音频id
    private Long created;//创建时间
    private String soundUrl;//音频文件地址
    private Long userId;//用户id
    private Boolean state = false;//是否已经被获取，默认为false
}
